#define _CRT_SECURE_NO_WARNINGS 1
class Solution {
public:
    int getSum(int n) {
        int ret = n;
        n > 0 && (ret += getSum(n - 1));
        return ret;
    }
};